<include file="User/header" />
<include file="User/leftmenu" />
<link rel="stylesheet" type="text/css" href="__PUBLIC__/home/css/pagination.css" />

<div class="right" id="tab1">
	<div class="title">我的订单</div>

	<!-- 2016-8-4 -->
	<div class="certification_list">
		<a class="hr" id="one1">全部订单</a>
		<a id="one2">待付款</a>
		<a id="one3">已完成</a>
	</div>

	<div class="order_list" id="con_one_1 ">
		<!-- 其他div需要class添加hide来进行隐藏  实现切换 -->

		<table class="table table-order ">
			<colgroup>
				<col class="col-xs-3 ">
				<col class="col-xs-1 ">
				<col class="col-xs-1 ">
				<col class="col-xs-1 ">
				<col class="col-xs-1 ">
			</colgroup>
			<thead>
				<tr>
					<th>报告名称</th>
					<th>价格</th>
					<th>订单状态</th>
					<th>操作</th>
				</tr>
			</thead>
		</table>
		<div class="_conter"></div>

		<div style="height: 40px;">
			<div class="_page M-box" style="float: right;">
			</div>
		</div>
	</div>
</div>
</div>

<div id="LoginBox" class="grantdiv ">
	<div class="hz ">
		<div class="hztop ">
			<a style="float:right; margin-right:20px; " href="javascript:void(0) " title="关闭窗口 " class="close_btn " id="close_btn"><img src="/Public/home/images/
no.png " /></a>
		</div>
		<div class="hzcp _hzcp">
			<p>是否取消订单?</p>
		</div>
		<div class="mydiv-foot " style=" width:250px; margin:0 auto ">
			<a href="javascript:void(0) " class="smthree fl close_btn " id="close_btn ">取消</a>
			<a class="smtwo fr ">确认</a>
		</div>
	</div>

</div>
<script id="test" type="text/html">
	{{each data as dataObj}}
	<table class="table table-order table-border ">
		<colgroup>
			<col class="col-md-3 ">
			<col class="col-md-1 ">
			<col class="col-md-1 ">
			<col class="col-md-1 ">
			<col class="col-md-1 ">
		</colgroup>
		<tbody>

			<div class="table-order-title {{if dataObj.pay_status == 0}} order-payment{{/if}}">
				<span>{{dataObj.order_time}}</span>
				<span>订单编号：<b>{{dataObj.order_id}}</b></span>
				<span>服务商：
				{{if dataObj.auth_type==1}}
					<b>{{dataObj.works_name}}</b>
				{{else}}
					<b>{{dataObj.enter_name}}</b>
				{{/if}}
				</span>
			</div>

			<tr>
				<td class="text-left "><a href="/report/detail.html?id={{dataObj.report_id}}" target="_blank">{{dataObj.report_title}}</a></td>
				{{if dataObj.pay_status == 0 || dataObj.pay_status == 1}}
				<td>￥{{dataObj.amount}}</td>
				{{/if}}
				{{if dataObj.pay_status == 0}}
				<td>待付款</td>
				<td class="order-payment-padding">
					<p class="payment ">
						<a href="#" idNum = '{{dataObj.order_id}}'>付款</a>
					</p>				
					<p>
						<a href="#" id="example" class="_example" orderNum='{{dataObj.order_id}}'>取消订单</a>
					</p>
					{{/if}}
					{{if dataObj.pay_status == 2 || dataObj.pay_status == 1}}
					<td>已完成</td>
					<td class="order-payment-padding"></td>
					{{/if}}
					</td>
			</tr>
		</tbody>
	</table>
	{{/each}}
</script>
<script src="__PUBLIC__/home/js/artTemplate.js"></script>
<script src="__PUBLIC__/home/js/userReportOrderList.js "></script>
<script src='__PUBLIC__/js/common.js'></script>
<script type="text/javascript" src="__PUBLIC__/home/js/jquery.pagination.min.js"></script>
</body>

</html>